/*
 * Copyright (c) 2019 Of Him Code Technology Studio
 * Jpom is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 * 			http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
import cn.hutool.core.convert.Convert;
import org.h2.util.StringUtils;
import org.junit.Test;

import java.math.BigInteger;

/**
 * @author bwcx_jzy
 * @since 2022/1/19
 */
public class TestH2String {

	@Test
	public void testStr() {
		String json = "356232323465346634343435323232633232353535303437353234313434343535663465346634343435356634633439353335343232326332323533343534313532343334383566353035323466346134353433353432323263323235333533343832323263323235333533343835663436343934633435323232633232353335333438356635343435353234643439346534313463323232633232353335333438356635343435353234643439346534313463356634633466343732323263323234663535353434373439353634393465343732323263323234663535353434373439353634393465343735663463346634373232326332323466353535343437343935363439346534373566343334663465343634393437356635373438343935343435346334393533353432323263323234643466346534393534346635323232326332323464346634653439353434663532356634633466343732323263323234663530353435663464346634653439353434663532323232633232343235353439346334343232326332323432353534393463343435663463346634373232326332323432353534393463343435663532343535303466353334393534346635323539323232633232353535333435353232323263323235353533343535323566346334663437323232633232353335393533353434353464356634353464343134393463323232633232353335393533353434353464356634333431343334383435323232633232353335393533353434353464356634633466343732323263323235333539353335343435346435663535353034373532343134343435323232633232353335393533353434353464356634333466346534363439343732323263323235333539353335343435346435663433346634653436343934373566343935303232326332323533353935333534343534643566343234313433346235353530323232633232353335393533353434353464356635373466353234623533353034313433343532323263323235303532346634613435343335343232326332323530353234663461343534333534356634363439346334353232326332323530353234663461343534333534356634633466343732323263323235303532346634613435343335343566343334663465353334663463343532323263323234613434346235663463343935333534323232633232353334333532343935303534323232633232353434663464343334313534323232633232353434663464343334313534356634363439346334353232326332323534346634643433343135343566346334663437323232633232346534373439346535383232326332323533353334633232326332323465346634343435356634333466346534363439343735663537343834393534343534633439353335343232326332323465346634343435356634333466346534363439343732323263323234653466343434353566343334313433343834353232326332323465346634343435356634633466343732323263323234653466343434353566353535303437353234313434343532323564";
		BigInteger bigInteger = new BigInteger(json);
		byte[] bytes = StringUtils.convertHexToBytes(json);
		System.out.println(new String(bytes));
		String s1 = Convert.toStr(bigInteger);
		System.out.println(s1);
		String s = bigInteger.toString(2);
		System.out.println(s);
		System.out.println(bigInteger);
	}
}
